package com.xiaoshuidi.cloud.module.member.pojo.questionnaireinfo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xiaoshuidi.cloud.framework.tenant.core.db.TenantBaseDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@TableName(value = "member_option", autoResultMap = true)
@KeySequence("member_option_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class MemberOption extends TenantBaseDO {
    private static final long serialVersionUID = -228411980579830938L;

    @TableId(type = IdType.AUTO)
    @Schema(description = "主键")
    private Long id;

    @Schema(description = "问卷ID")
    private Long questionnaireId;

    @Schema(description = "题目ID")
    private Long questionId;

    @Schema(description = "选项名称")
    private String name;

    @Schema(description = "选项内容")
    private String content;

    @Schema(description = "选项附带图片")
    private String image;

    @Schema(description = "是否必填")
    private Boolean optionFlag;

}
